﻿using MediatR;
using System.Text.Json;

namespace _29_领域事件发布机制
{
    public class getNotification : NotificationHandler<sendNotification>
    {
        protected override void Handle(sendNotification notification)
        {
            Console.WriteLine("接收到数据：" + JsonSerializer.Serialize(notification.ly));
        }
    }
}
